const pattern = /\d+-(\d+)-\d+/

function extractMonth(thedate) {
    return pattern.exec(thedate)[1]
}

module.exports = {
    extractMonth
}
